package com.tony.service;

import com.tony.dao.AccountMapper;
import com.tony.pojo.Account;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(readOnly = true)
public class AccountServiceImpl implements AccountService{

    @Resource
    AccountMapper mapper;

    @Override
    public Account findByID(int id) {
        Account byID = mapper.findByID(id);
        return byID;
    }
}
